import request from '../utils/request.js'
import { CompanyId, EntId, t100BaseApi } from "../config/t100.js";

export const getDeviceInfoFromT100 = function(data) {
	return request({
		url: `${t100BaseApi}/wstopprd/ws/r/awsp920`,
		method: 'POST',
		header: {
			'content-type': 'application/json'
		},
		data: {
			host: {
				acct: "tiptop"
			},
			service: {
				prod: "T100",
				name: "wechat.act.get",
				ip: "172.18.205.166",
				id: "topprd"
			},
			datakey: {
				CompanyId: CompanyId,
				EntId: EntId
			},
			payload: {
				std_data: {
					parameter: {
						midxuc006: data
					}
				}
			}
		},
	})
}
